﻿<p:ZComponent x:Class="ZOIL.Library.Components.TextCardView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    xmlns:p="http://hci.uni-konstanz.de/permaedia"
    xmlns:local="clr-namespace:ZOIL.Library.Components"
    p:ZObjectDragDropBehavior.IsDraggable="False"
    p:ZObjectResizeBehavior.IsResizable="False"
    p:ZObjectRotateBehavior.IsRotatable="False"
    p:ZInformationLandscape.ZoomTarget="True"
    p:ZInformationLandscape.ZoomMargin="10,10,10,10">
   
        <p:ZComponentFrames x:Name="PART_SemanticZoom" Focusable="False">
            
            <p:ZComponentFrame WidthNeeded="{Binding FakeZoomLevelOut}">
                <Grid x:Name="fakeGridOut" Width="200" Height="200"/>
            </p:ZComponentFrame>

            <p:ZComponentFrame WidthNeeded="{Binding ZoomLevel2}">
                <Grid x:Name="outerGrid" Width="200" Height="200">
                    <Rectangle Margin="0"
                    Fill="White" RadiusX="8" RadiusY="8" StrokeLineJoin="Bevel" />
                    <TextBox Margin="13" Name="smallText" Text="{Binding SmallText}" Background="Transparent" Foreground="Black" IsEnabled="True" BorderThickness="0"
                             FontSize="12" FontFamily="Arial Unicode MS" TextWrapping="Wrap" TextAlignment="Left" 
                             HorizontalAlignment="Center" VerticalAlignment="Center" Padding="7.5" />
                    <Rectangle Margin="12" Fill="Transparent" Stroke="Gray"
                    StrokeThickness="1.0" RadiusX="8" RadiusY="8" StrokeLineJoin="Bevel"/>
                </Grid>
            </p:ZComponentFrame>

            <p:ZComponentFrame WidthNeeded="{Binding ZoomLevel3}" >
                <Grid x:Name="innerGrid" Width="200" Height="200">
                        <!--<Grid.Background>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                            <GradientStop Color="White" Offset="0"/>
                            <GradientStop Color="#FFCCCCCC" Offset="1"/>
                        </LinearGradientBrush>
                    </Grid.Background>-->
                        <!--<Rectangle Margin="0"
                    Fill="WhiteSmoke" StrokeThickness="2" RadiusX="8" RadiusY="8" Stroke="{Binding LogoBrush}" StrokeLineJoin="Bevel" />-->
                        <Rectangle Margin="0"
                    Fill="White" RadiusX="8" RadiusY="8" StrokeLineJoin="Bevel" />
                        <TextBox Margin="13" Name="largeText" Text="{Binding LargeText}" Background="White" Foreground="Black" IsEnabled="True" BorderThickness="0"
                             FontSize="8" FontFamily="Arial Unicode MS" TextWrapping="Wrap" TextAlignment="Left" 
                             HorizontalAlignment="Center" VerticalAlignment="Center" Padding="7.5" />
                        <Rectangle Margin="12" Fill="Transparent" Stroke="Gray"
                    StrokeThickness="1.0" RadiusX="8" RadiusY="8" StrokeLineJoin="Bevel"/>
                    </Grid>
            </p:ZComponentFrame>
            
            <p:ZComponentFrame WidthNeeded="{Binding FakeZoomLevelIn}">
                <Grid x:Name="fakeGridIn" Width="200" Height="200" />
            </p:ZComponentFrame>
        
        </p:ZComponentFrames>
</p:ZComponent>
